<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">


    <title>游戏卡批次 详情</title>

    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="{$Think.const.RESOURCE}img/favicon.ico">
    <link href="{$Think.const.RESOURCE}css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/animate.css" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/style.css?v=4.1.0" rel="stylesheet">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="{$Think.const.RESOURCE}css/font.css">
    <link rel="stylesheet" href="{$Think.const.RESOURCE}css/xadmin.css">
    <link href="{$Think.const.RESOURCE}css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="{$Think.const.RESOURCE}lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="{$Think.const.RESOURCE}js/xadmin.js"></script>
    <style>
        :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
            color: #b6b6b6; opacity:1;
        }

        ::-moz-placeholder { /* Mozilla Firefox 19+ */
            color: #b6b6b6;opacity:1;
        }

        input:-ms-input-placeholder{
            color: #b6b6b6;opacity:1;
        }

        input::-webkit-input-placeholder{
            color: #b6b6b6;opacity:1;
        }
    </style>
</head>

<body class="fixed-sidebar full-height-layout gray-bg">

<div class="row">
    <br><br>
    <h1 class="text-center"> 批次<span class="text-danger"> {$_GET['card_group']} </span> 的游戏卡详情</h1>
    <div class="col-md-12">
        <p class="text-center">共 {$count} 条数据</p>
        <div class="tab-content">
            <div id="tab-1" class="tab-pane active">
                <div class="full-height-scroll">
                    <div class="table-responsive">
                        <table class="table table-bordered table-striped table-hover ">
                            <thead>
                            <tr>
                                <th ><span style="display: inline-block; min-width: 60px;">游戏卡号 </span></th>
                                <th ><span style="display: inline-block; min-width: 60px;">销售商 </span></th>
                                <th ><span style="display: inline-block; min-width: 60px;">卡片金额 </span></th>
                                <th ><span style="display: inline-block; min-width: 60px;">使用时间 </span></th>
                                <th ><span style="display: inline-block; min-width: 60px;">使用者游戏ID </span></th>
                                <th ><span style="display: inline-block; min-width: 60px;">使用者昵称 </span></th>
                                <th ><span style="display: inline-block; min-width: 60px;">批次 </span></th>
                                <th ><span style="display: inline-block; min-width: 60px;">创建时间 </span></th>
                                <th ><span style="display: inline-block; min-width: 60px;">操作 </span></th>
                            </tr>
                            </thead>
                            <script>
                                //冻结
                                function onedel_grounp(num){
                                    layer.confirm('您真的确定要冻结这张卡吗?', {
                                    btn : [ '确定', '取消' ]//按钮
                                    }, function(index) {
                                         $.get("/gamecard/onedgroup", {id:num},function (data) {
                                                  if  (data.code =='success') {  
                                                    layer.msg('冻结成功!',{icon:1,time:1000});
                                                    window.location.reload();
                                                  }else{  
                                                      layer.msg('冻结失败!',{icon:2,time:1000});
                                                  }
                                          });
                                    });
                                }
                                //解冻
                                function onenodel_grounp(num){
                                    layer.confirm('您真的确定要解冻这张卡吗?', {
                                    btn : [ '确定', '取消' ]//按钮
                                    }, function(index) {
                                        $.get("/gamecard/onenodgroup", {id:num},function (data) {
                                              if  (data.code =='success') {  
                                                layer.msg('解冻成功!',{icon:1,time:1000});
                                                window.location.reload();
                                              }else{  
                                                  layer.msg('解冻失败!',{icon:2,time:1000});
                                              }
                                        });  
                                    }); 
                                }
                                //{:U('gamecard/detail')}?card_owner={$vo['card_group']['value']}
                            </script>

                            <tbody>
                            <volist name="lists" id="vo">
                                <tr>
                                    <td>{$vo.card_no}</td>
                                    <td>{$vo.card_owner}</td>
                                    <td>{$vo.card_gold}</td>
                                    <td>{$vo.user_use_time}</td>
                                    <td>{$vo.user_game_id}</td>
                                    <td>{$vo.user_nike_name}</td>
                                    <td>{$vo.card_group}</td>
                                    <td>{$vo.card_create_time}</td>
                                    <td>
                                        <if condition="$vo.card_type eq -2">
                                            <a onclick='onenodel_grounp("{$vo.id}" )' title="解冻" class="contact-type" style="display:inline-block">
                                                    <i class="fa fa-lock loc"></i>
                                            </a>
                                        <else/>
                                            <a onclick='onedel_grounp("{$vo.id}" )' title="冻结" class="contact-type" style="display:inline-block">
                                                    <i class="fa fa-unlock loc"></i>
                                            </a>
                                        </if>  
                                    </td>  
                                </tr>
                            </volist>


                            <volist name="lists" id="vo">
                                <foreach name="vo" item="v2" key="k" >
                                    <div class="modal inmodal " id="myModal{$vo['id']['value']}" tabindex="-1" role="dialog"  aria-hidden="true">
                                        <div class="modal-dialog modal-lg">
                                            <div class="modal-content animated fadeIn">
                                                <div class="modal-header">
                                                    <button type="button" class="close" data-dismiss="modal">
                                                        <span aria-hidden="true">&times;</span>
                                                        <span class="sr-only">Close</span>
                                                    </button>
                                                    <i class="fa fa-wrench modal-icon"></i>
                                                </div>
                                                <div class="modal-body">
                                                    
                                                </div>
                                            </div>

                                        </div>
                                    </div>
                                </foreach>
                            </volist>

                            </tbody>
                        </table>

                    </div>
                    <div class=" row text-center contact-type page_show">
                        <style>
                            .page_show{
                                width: 100%;
                                margin-top:30px;
                            }
                            .page_show a{
                                padding: 16px 22px;
                            }
                            .page_show a:hover{
                                background-color: #18a689;
                                border-radius: 30px;
                                color: #ffffff;
                            }
                            .page_show .current{
                                padding: 20px;
                            }
                            .loc{
                                color: #23c6c8;
                            }
                        </style>
                        <!--//{$page_show}-->
                        <volist name="page_show" id="vo">
                            <if condition="($vo gt 0) "> <a href="{:U('gamecard/detail')}?card_group={$con}&p={$vo}" class="num">{$vo}</a>
                                <else /> <span>...</span>
                            </if>

                        </volist>
                        当前页：<span class=" text-danger">{$p}</span>
                    </div>
                </div>
            </div>

        </div>

    </div>
</div>


<!-- 全局js -->
<script src="{$Think.const.RESOURCE}js/jquery.min.js?v=2.1.4"></script>
<script src="{$Think.const.RESOURCE}js/bootstrap.min.js?v=3.3.6"></script>
</body>

</html>